﻿using CRM.Admin.Contracts.Model.Sys;
using KingsSharp.Core.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CRM.Admin.Contracts.Model.Map
{
    /// <summary>
    /// 需求情况-按地区
    /// </summary>
    public class AreaRequstInfo: EntityBase<Guid> 
    {
        /// <summary>
        /// 时间年
        /// </summary>
        public int Year { get; set; }
        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public string ProdName { get; set; }
        /// <summary>
        /// 需求量
        /// </summary>
        public decimal ReqWt { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人id
        /// </summary>
        public Guid CreateById { get; set; }
        /// <summary>
        /// 创建人导航属性
        /// </summary>
        public UserInfo CreateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人id
        /// </summary>
        public Guid? UpdateById { get; set; }
        /// <summary>
        /// 修改人导航属性
        /// </summary>
        public UserInfo UpdateBy { get; set; }
    }
    /// <summary>
    /// 需求情况-按行业
    /// </summary>
    public class IndustryRequstInfo : EntityBase<Guid>
    {
        /// <summary>
        /// 时间年
        /// </summary>
        public int Year { get; set; }
        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 行业
        /// </summary>
        public string  Industry{ get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public string ProdName { get; set; }
        /// <summary>
        /// 需求量
        /// </summary>
        public decimal ReqWt { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人id
        /// </summary>
        public Guid CreateById { get; set; }
        /// <summary>
        /// 创建人导航属性
        /// </summary>
        public UserInfo CreateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人id
        /// </summary>
        public Guid? UpdateById { get; set; }
        /// <summary>
        /// 修改人导航属性
        /// </summary>
        public UserInfo UpdateBy { get; set; }
    }
    /// <summary>
    /// 需求情况按终端用户
    /// </summary>
    public class UserRequstInfo : EntityBase<Guid>
    {
        /// <summary>
        /// 时间年
        /// </summary>
        public int Year { get; set; }
        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 省内片区
        /// </summary>
        public string ProvinceArea { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public string ProdName { get; set; }
        /// <summary>
        /// 行业
        /// </summary>
        public string Industry { get; set; }
        /// <summary>
        /// 终端用户
        /// </summary>
        public string  FinUserName{get;set;}
        /// <summary>
        /// 供需情况简介
        /// </summary>
        public string FinUserProfIles { get; set; }
        /// <summary>
        /// 需求量
        /// </summary>
        public decimal ReqWt { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人id
        /// </summary>
        public Guid CreateById { get; set; }
        /// <summary>
        /// 创建人导航属性
        /// </summary>
        public UserInfo CreateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人id
        /// </summary>
        public Guid? UpdateById { get; set; }
        /// <summary>
        /// 修改人导航属性
        /// </summary>
        public UserInfo UpdateBy { get; set; }
    }
    /// <summary>
    /// 供给情况
    /// </summary>
    public class SupplyInfo : EntityBase<Guid>
    {
        /// <summary>
        /// 时间年
        /// </summary>
        public int Year { get; set; }
        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 钢厂
        /// </summary>
        public string SteelFactory { get; set; } 
        /// <summary>
        /// 钢厂所在地区
        /// </summary>
        public string SteelFactoryArea { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public string ProdName { get; set; }
        /// <summary>
        /// 供给量
        /// </summary>
        public decimal SupWt { get; set; }
        /// <summary>
        /// 占比
        /// </summary>
        public decimal  ProportIon{get;set;}
        /// <summary>
        /// 创建人id
        /// </summary>
        public Guid CreateById { get; set; }
        /// <summary>
        /// 创建人导航属性
        /// </summary>
        public UserInfo CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人id
        /// </summary>
        public Guid? UpdateById { get; set; }
        /// <summary>
        /// 修改人导航属性
        /// </summary>
        public UserInfo UpdateBy { get; set; }
    }
    /// <summary>
    /// 网点简介
    /// </summary>
    public class NetworkInfo : EntityBase<Guid>
    {
        /// <summary>
        /// 网店地区
        /// </summary>
        public string NetworkArea { get; set; }
        /// <summary>
        /// 网点名称
        /// </summary>
        public string NetworkName { get; set; }
        /// <summary>
        /// 区县
        /// </summary>
        public string County { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        public decimal? Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        public decimal? Latitude { get; set; }
        /// <summary>
        /// 网店简介
        /// </summary>
        public string Profiles { get; set; }
        /// <summary>
        /// 创建人id
        /// </summary>
        public Guid CreateById { get; set; }
        /// <summary>
        /// 创建人导航属性
        /// </summary>
        public UserInfo CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人id
        /// </summary>
        public Guid? UpdateById { get; set; }
        /// <summary>
        /// 修改人导航属性
        /// </summary>
        public UserInfo UpdateBy { get; set; }
    }
    /// <summary>
    /// 销售流向
    /// </summary>
    public class SaleInfo : EntityBase<Guid>
    {
        /// <summary>
        /// 时间年
        /// </summary>
        public int Year { get; set; }
        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 行业
        /// </summary>
        public string Industry { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public string ProdName { get; set; }
        /// <summary>
        /// 销量
        /// </summary>
        public decimal SaleWt { get; set; }
        /// <summary>
        /// 占比
        /// </summary>
        public decimal ProportIon { get; set; }
        /// <summary>
        /// 创建人id
        /// </summary>
        public Guid CreateById { get; set; }
        /// <summary>
        /// 创建人导航属性
        /// </summary>
        public UserInfo CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人id
        /// </summary>
        public Guid? UpdateById { get; set; }
        /// <summary>
        /// 修改人导航属性
        /// </summary>
        public UserInfo UpdateBy { get; set; }

    }
    /// <summary>
    /// 简介
    /// </summary>
    public class AreaProfilesInfo : EntityBase<Guid>
    {
        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }
        /// <summary>
        /// 简介
        /// </summary>
        public string Profiles { get; set; }
        /// <summary>
        /// 创建人id
        /// </summary>
        public Guid CreateById { get; set; }
        /// <summary>
        /// 创建人导航属性
        /// </summary>
        public UserInfo CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人id
        /// </summary>
        public Guid? UpdateById { get; set; }
        /// <summary>
        /// 修改人导航属性
        /// </summary>
        public UserInfo UpdateBy { get; set; }
    }
}
